package com.iotp.dao.knowledge_type;

import com.iotp.entity.knowledge_type.KnowledgeType;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface KnowledgeTypeMapper {
    int deleteByPrimaryKey(Long id);

    Long insert(KnowledgeType record);

    int insertSelective(KnowledgeType record);

    KnowledgeType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(KnowledgeType record);

    int updateByPrimaryKey(KnowledgeType record);

    /**
     * 查询类别编码
     * @param params
     * @return
     */
    KnowledgeType selectByLength(HashMap params);

    List<KnowledgeType> selectByCondition(KnowledgeType knowledgeType);
}